// pathdialog.h
#ifndef PATHDIALOG_H
#define PATHDIALOG_H

#include <QDialog>
#include <vector>
#include "edge.h"

namespace Ui {
class PathDialog;
}

class PathDialog : public QDialog
{
    Q_OBJECT

public:
    explicit PathDialog(QWidget *parent = nullptr,
                        const std::vector<Edge*>& path = {},
                        double totalLength = 0.0);
    ~PathDialog();

private slots:
    void on_confirmButton_clicked();

private:
    Ui::PathDialog *ui;
    std::vector<Edge*> m_path;
    double m_totalLength;

    void updatePathDisplay();
};

#endif // PATHDIALOG_H
